<%-- 
    Document   : login
    Created on : 23.04.2011, 13:29:27
    Author     : Михаил
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="resources/stylesheet.css" type="text/css"/>
        <script src="resources/validate.js"></script>
        <title>Мой дневник - Вход</title>
    </head>
    <body>
    <div id="container">
        <div id="header"></div>
        <div id="lr-form">
            <form action="login-processor.jsp" method="post" onsubmit="return validateEmpty('login','password');">
                <table>
                    <tr>
                        <td>Логин</td>
                        <td><input type="text" name="login" id="login"/></td>
                    </tr>
                    <tr>
                        <td>Пароль</td>
                        <td><input type="password" name="password" id="password"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" value="Вход"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><a href="register.jsp">Регистрация</a></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    </body>
                    <%
                        if (request.getParameter("redirect")!=null) {
                            if (request.getParameter("redirect").equals("incorrect")) {
                    %>
                    <script>alert("Неправильный логин или пароль")</script>
                    <%
                            }
                        }
                    %>
</html>

